package org.jsystem;

import org.jsystem.tools.*;

import jsystem.framework.system.SystemObjectImpl;
import junit.framework.Assert;

public class CreatePushSo extends SystemObjectImpl {
	LogContainerHttp logContainerHttp = new LogContainerHttp();
	public void verifyIfPushCreated() {
		CreatePushHelper createPushHelper = new CreatePushHelper();
		Assert.assertNotNull(createPushHelper.sendGet(HTTP + srcIp + params1 + uiport +  params7 + rfunc + params4 + func + params2 + 
				rtype + params4 + type + params2 + rpassword + params4 + password + params2 + rlatency + params4 + latency + params2 +
				rforce_p2p + params4 + force_p2p + params2 + rid + params4 + id + params2 + rmax_outputs + params4 + max_outputs + params2 +
				rmcast_out + params4 + mcast_out + params2 + ron + params4 + on + params2 + ranalyze + params4 + analyze + params2 + rcomplete+ params4 + complete + params2 + rmcast_force + params4 + mcast_force + params2 +rmcast_ip + params4 + mcast_ip + params2 +
				rmcast_port + params4 + mcast_port + params2 + rmcast_ttl + params4 + mcast_port + params2 + rtime_shift + params4 + time_shift + params2 +
				params5, id, logContainerHttp));
	}

	final protected static String HTTP = "http://";
	final protected static String params1 = ":";
	final protected static String params2 = "&";
	final protected static String params4 = "=";
	final protected static String params5 = "ie_fooler=0.45086039789021015";
	protected static String params7 = "/zixi/add_stream.json?";

	final protected String rfunc = "func";
	final protected String ron = "on";
	final protected String rpassword = "password";
	final protected String rlatency = "latency";
	final protected String rforce_p2p = "force_p2p";
	final protected String rtype = "type";
	final protected String rid = "id";
	final protected String rmax_outputs = "max_outputs";
	final protected String rmcast_out = "mcast_out";
	final protected String rmcast_force = "mcast_force";
	final protected String rmcast_ip = "mcast_ip";
	final protected String rmcast_port = "mcast_port";
	final protected String rmcast_ttl = "mcast_ttl";
	final protected String rtime_shift = "time_shift";
	final protected String rcomplete = "complete";
	final protected String ranalyze = "analyze";

	protected String srcIp = "";
	protected String uiport = "";
	protected String func = "";
	protected String on = "";
	protected String password = "";
	protected String latency = "";
	protected String force_p2p = "";
	protected String type = "";
	protected String id = "";
	protected String max_outputs = "";
	protected String mcast_out = "";
	protected String mcast_force = "";
	protected String mcast_ip = "";
	protected String mcast_port = "";
	protected String mcast_ttl = "";
	protected String time_shift = "";
	protected String complete = "";
	protected String analyze = "";

	public String getSrcIp() {
		return srcIp;
	}

	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}

	public String getUiport() {
		return uiport;
	}

	public void setUiport(String uiport) {
		this.uiport = uiport;
	}
	
	public String getFunc() {
		return func;
	}

	public void setFunc(String func) {
		this.func = func;
	}

	public String getOn() {
		return on;
	}

	public void setOn(String on) {
		this.on = on;
	}

	public String getLatency() {
		return latency;
	}

	public void setLatency(String latency) {
		this.latency = latency;
	}

	public String getForce_p2p() {
		return force_p2p;
	}

	public void setForce_p2p(String force_p2p) {
		this.force_p2p = force_p2p;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMax_outputs() {
		return max_outputs;
	}

	public void setMax_outputs(String max_outputs) {
		this.max_outputs = max_outputs;
	}

	public String getMcast_out() {
		return mcast_out;
	}

	public void setMcast_out(String mcast_out) {
		this.mcast_out = mcast_out;
	}

	public String getMcast_force() {
		return mcast_force;
	}

	public void setMcast_force(String mcast_force) {
		this.mcast_force = mcast_force;
	}

	public String getMcast_ip() {
		return mcast_ip;
	}

	public void setMcast_ip(String mcast_ip) {
		this.mcast_ip = mcast_ip;
	}

	public String getMcast_port() {
		return mcast_port;
	}

	public void setMcast_port(String mcast_port) {
		this.mcast_port = mcast_port;
	}

	public String getMcast_ttl() {
		return mcast_ttl;
	}

	public void setMcast_ttl(String mcast_ttl) {
		this.mcast_ttl = mcast_ttl;
	}

	public String getTime_shift() {
		return time_shift;
	}

	public void setTime_shift(String time_shift) {
		this.time_shift = time_shift;
	}

	public String getComplete() {
		return complete;
	}

	public void setComplete(String complete) {
		this.complete = complete;
	}

	public String getAnalyze() {
		return analyze;
	}

	public void setAnalyze(String analyze) {
		this.analyze = analyze;
	}
}
